*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
    text-decoration: none;
    list-style: none;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color: white;
    background-color: #1e2a38;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 35px 12%;
    background: rgb(75, 75, 75);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 25px;
    color: white;
    font-weight: 600;
    transition: 0.3s ease;
}

.logo:hover{
    color: rgb(27, 154, 27);
    text-shadow: 0 0 25px rgb(27, 154, 27),
                 0 0 50px rgb(27, 154, 27);
    transform: scale(1.1);
}

span{
    color: rgb(27, 154, 27);
}

.navbar a{
    font-size: 18px;
    color: white;
    font-weight: 500;
    margin: 0 20px;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active{
    color:rgb(27, 154, 27);
    border-bottom: 3px solid rgb(27, 154, 27);
}

.contact:hover{
    background-color: rgb(27, 154, 27);
    box-shadow: 0 0 25px rgb(27, 154, 27);
    color: white;
}

.home{
    width: 100%;
    min-height: 60vh;
    background: #EDEDE9;
    display: flex;
    align-items: center;
    gap: 2em;
    padding: 15px 6% 0;
}

.home-content{
    max-width: 450px;
}

.home-content h3{
    font-size: 28px;
    color: black;
}

.home-content h1{
    font-size: 42px;
    line-height: 1.2;
    color: black;
}

.home-content p{
    font-size: 16px;
    margin: 15px 0 20px;
    line-height: 1.4;
    max-width: 400px;
    color: black;
}

.btn-box{
    width: 280px;
    display: flex;
    gap: 1em;
}

.btn-1{
    padding: 10px 20px;
    background-color: black;
    color: white;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    letter-spacing: 1.2px;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn-1:hover{
    background-color: white;
    color: black;
    border: 2px solid black;
}

.btn-2{
    padding: 10px 20px;
    background-color: rgb(27, 154, 27);
    color: white;
    border: 2px solid black;
    border-radius: 8px;
    font-size: 14px;
    letter-spacing: 1.2px;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn-2:hover{
    background-color: white;
    color: rgb(27, 154, 27);
}

.img-box{
    margin-left: auto;
}

.img-box img{
    border-radius: 50%;
    width: 300px;
}

::-webkit-scrollbar{
    width: 15px;
}

::-webkit-scrollbar-thumb{
    background-color: rgb(67, 107, 60);
}

::-webkit-scrollbar-track{
    background-color: black;
    width: 50px;
}

.about{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8% 8%;
    gap: 6em;
    background: #D5BDAF;
}

.about-img img{
    position: relative;
    width: 350px;
    border-radius: 50%;
}

.about-content h2{
    text-align: left;
    color: white;
    font-size: 42px;
}

.about-content h3{
    font-size: 56px;
    color: white;
}

.about-content p{
    color: white;
    font-size: 22px;
    margin: 1.8em 0 2.5em;
    line-height: 1.6;
    max-width: 600px;
}

.footer{
    position: relative;
    width: 100%;
    padding: 40px 0;
    background-color: black;
    margin-top: auto;
}

.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: white;
}

.footer .social a{
    font-size: 24px;
    color: white;
    border: 2px solid rgb(27, 154, 27);
    width: 40px;
    height: 40px;
    line-height: 38px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 8px;
    box-shadow: inset 0 0 10px rgb(27, 154, 27), 0 0 10px rgb(27, 154, 27);
    transition: 0.3s ease;
}

.footer .social a:hover{
    transform: scale(1.2)translate(-10px);
    color: rgb(27, 154, 27);
    border: 2px solid rgb(27, 154, 27);
}

.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}

.footer ul li a:hover{
    border-bottom: 3px solid rgb(27, 154, 27);
}

.footer ul li{
    display: inline-block;
    padding: 0 15px;
}

.footer .copyright{
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    color: white;
}

.rootme {
    width: 100px;
    height: auto;
    max-width: 100%;
}

.timeline{
    position: relative;
    max-width: 1200px;
    margin: 100px auto;
}

.container{
    padding: 10px 50px;
    position: relative;
    width: 50%;
    animation: movedown 1s linear forwards;
    opacity: 0;
}

@keyframes movedown {
    0%{
        opacity: 1;
        transform: translateY(-30px);
    }
    100%{
        opacity: 1;
        transform: translateY(0px);
    }
}

.container:nth-child(1){
    animation-delay: 0s;
}
.container:nth-child(2){
    animation-delay: 1s;
}
.container:nth-child(3){
    animation-delay: 2s;
}

.text-box{
    padding: 20px 30px;
    background: cadetblue;
    position: relative;
    border-radius: 6px;
    font-size: 15px;
}

.left-container{
    left: 0;
}

.right-container{
    left: 50%;
}

.container img{
    position: absolute;
    width: 40px;
    border-radius: 50%;
    right: -20px;
    top: 32px;
    z-index: 10;
}

.right-container img{
    left: -20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 100%;
    background: cadetblue;
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
    animation: moveline 3s linear forwards;
}

@keyframes moveline {
    0%{
        height: 0;
    }
    100%{
        height: 100%;
    }
}

.text-box h2{
    font-weight: 600;
}

.text-box small{
    display: inline-block;
    margin-bottom: 15px;
}

.left-container-arrow{
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid cadetblue;
    right: -15px;
}

.right-container-arrow{
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid cadetblue;
    left: -15px;
}

.timeline-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: cadetblue;
}

.certifications {
    padding: 50px 12%;
    text-align: center;
    background-color: #2d2d3a;
}

.certifications-title {
    font-size: 36px;
    font-weight: 700;
    color: cadetblue;
    margin-bottom: 40px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 10%;
}

.certification-item {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.certification-item a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.certification-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(27, 154, 27, 0.2);
}

.certification-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 15px;
}

.competences {
    padding: 50px 12%;
    text-align: center;
    background-color: #2a303c;
}

.competences-title {
    text-align: center;
    font-size: 2em;
    color: #6a9fa0;
    margin-top: 20px;
}

.competences-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    padding: 30px 5%;
}

.competences-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.competences-item img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    display: block;
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    transition: transform 0.3s ease;
}

.competences-item:hover img {
    transform: scale(1.1);
}

#menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    color: white;
}

/* Media Queries */
@media screen and (max-width: 1200px) {
    .header {
        padding: 25px 8%;
    }
    .home {
        padding: 30px 8% 0;
        gap: 4em;
    }
    .about {
        padding: 8% 8%;
        gap: 5em;
    }
}

@media screen and (max-width: 991px) {
    .header {
        padding: 20px 5%;
    }
    .navbar a {
        font-size: 16px;
        margin: 0 10px;
    }
    .home {
        flex-direction: column;
        text-align: center;
        padding: 100px 5% 0;
        gap: 2em;
    }
    .home-content {
        max-width: 100%;
        padding-top: 20px;
    }
    .btn-box {
        justify-content: center;
    }
    .img-box {
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-bottom: 20px;
    }
    .img-box img {
        width: 400px;
    }
    .about {
        flex-direction: column;
        text-align: center;
        padding: 5% 5%;
        gap: 3em;
    }
    .about-img img {
        width: 400px;
    }
    .about-content h2, .about-content h3 {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .header {
        padding: 15px 5%;
    }
    .logo {
        font-size: 20px;
    }
    #menu-icon {
        display: block;
    }
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: rgb(75, 75, 75);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 100px 0;
        transition: 0.3s ease;
        z-index: 10000;
    }
    .navbar.active {
        right: 0;
    }
    .navbar a {
        display: block;
        font-size: 20px;
        margin: 15px 0;
        padding: 10px 20px;
        border-radius: 5px;
        transition: 0.3s ease;
    }
    .navbar a:hover {
        background: rgb(27, 154, 27);
        color: white;
    }
    .home-content h3 {
        font-size: 32px;
    }
    .home-content h1 {
        font-size: 48px;
    }
    .home-content p {
        font-size: 16px;
    }
    .img-box img {
        width: 300px;
    }
    .about-img img {
        width: 300px;
    }
    .certifications-grid, .competences-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .competences-grid {
        gap: 30px;
    }
    .competences-item img {
        width: 140px;
        height: 140px;
    }
}

@media screen and (max-width: 600px){
    .timeline{
        margin: 50px auto;
    }
    .timeline::after{
        left: 31px;
    }
    .container{
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }
    .text-box{
        font-size: 13px;
    }
    .text-box small{
        margin-bottom: 10px;
    }
    .right-container{
        left: 0;
    }
    .left-container img, .right-container img{
        left: 10px;
    }
    .left-container-arrow, .right-container-arrow{
        border-right: 15px solid cadetblue;
        border-left: 0;
        left: -15px;
    }
}

@media screen and (max-width: 480px) {
    .home-content h3 {
        font-size: 28px;
    }
    .home-content h1 {
        font-size: 36px;
    }
    .btn-box {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    .img-box img {
        width: 250px;
    }
    .about-img img {
        width: 250px;
    }
    .about-content h2 {
        font-size: 32px;
    }
    .about-content h3 {
        font-size: 48px;
    }
    .about-content p {
        font-size: 16px;
    }
    .footer ul li {
        display: block;
        margin: 10px 0;
    }
    .certifications-title, .competences-title {
        font-size: 28px;
    }
    .competences-grid {
        gap: 20px;
    }
    .competences-item img {
        width: 110px;
        height: 110px;
    }
}

@media screen and (max-width: 380px) {
    .home-content h3 {
        font-size: 24px;
    }
    .home-content h1 {
        font-size: 32px;
    }
    .img-box img {
        width: 200px;
    }
    .about-img img {
        width: 200px;
    }
    .about-content h2 {
        font-size: 28px;
    }
    .about-content h3 {
        font-size: 42px;
    }
    .certifications-title, .competences-title {
        font-size: 24px;
    }
}